import Vue from 'vue'
import Vuex from 'vuex'

import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [
    createPersistedState({
      key: 'zufangCOKEN',
      reducer({ coken }) {
        return { coken }
      }
    })
  ],

  state: {
    coken: ''
  },
  getters: {},
  mutations: {
    DENGLUCOKEN(state, val) {
      state.coken = val
    }
  },
  actions: {},
  modules: {}
})
